package com.hospital.yygh.hosp;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * 医院设计结构
 * @ComponentScan：扫描配置类，例如 com.hospital.yygh.common.config.Swagger2Config的配置，为了避免扫不到，最好路径选择短一点(因为有可能其他配置类可能不在yygh包下)
 * http://localhost:8201/swagger-ui.html 启动这个模块的swagger
 */
@SpringBootApplication
@ComponentScan(basePackages = "com.hospital")
@EnableDiscoveryClient   // 开启服务注册
@EnableFeignClients(basePackages = "com.hospital")
public class ServiceHospApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServiceHospApplication.class, args);
        System.out.println("ServiceHospApplication...启动成功！！！！！");
    }

}
